package com.qj.platform.pay.mssm.service;

import feign.Feign;
import feign.jackson.JacksonDecoder;
import feign.jackson.JacksonEncoder;

/**
 * Created by zhijie on 2016/12/12.
 */
public class MSSMPayService {
    private static MSSMPayPlatform payPlatform;

    public static MSSMPayPlatform getMSSMPayPlatformInstance() {
        if (payPlatform == null) {
            payPlatform = Feign.builder()
                    .encoder(new JacksonEncoder())
                    .decoder(new JacksonDecoder())
                    .target(MSSMPayPlatform.class, "http://110.80.39.174:9013/nbp-smzf-hzf");
        }
        return payPlatform;
    }
}
